'''
lambda 表达式
'''
from urllib.request import urlopen
from bs4 import BeautifulSoup

html = urlopen("http://www.ivsky.com/bizhi/fengjing/")
bsObj = BeautifulSoup(html, "html.parser")

res = bsObj.findAll(lambda tag: len(tag.attrs) == 2)
for x in res:
    print(x)